#ifndef SPECTROGRAMPLOT_H
#define SPECTROGRAMPLOT_H

#include <QCustomPlot.h>

class SpectrogramPlot : public QCustomPlot {
    Q_OBJECT
public:
    explicit SpectrogramPlot(QWidget *parent = nullptr);
    void plotSpectrogram(const QVector<double>& T,
                         const QVector<double>& F,
                         const QVector<QVector<double>>& PSD,
                         const QVector<double>& VLF,
                         const QVector<double>& LF,
                         const QVector<double>& HF,
                         bool flagWavelet = false);

protected:
    void mouseDoubleClickEvent(QMouseEvent *event) override;

private:
    QCPColorMap *mColorMap;
    QCPColorScale *mColorScale;
};

#endif // SPECTROGRAMPLOT_H
